473,466 Members | 1,511 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Open in new window with CSS?

Dear all,

Is it possible to do this with CSS (so that I don't write all that with
every link)?

<a href="blabla.mp3" target="new"
onclick="window.open('','new','toolbar=no,location =no,directories=no,status=
no,menubar=no,scrollbars=no,resizable=yes,width=15 0,height=20,top=50,left=50
');return true;">blabla</a>

What is this, by the way? DHTML, XHTML or what?

Thanks in advance,
Pastis
Jul 20 '05 #1
4 19962
Pastis wrote:
Is it possible to do this with CSS
No.
(so that I don't write all that with
every link)?
Put it in a JavaScript function and then call the function.
<a href="blabla.mp3" target="new"
onclick="window.open('','new','toolbar=no,location =no,directories=no,status=
no,menubar=no,scrollbars=no,resizable=yes,width=15 0,height=20,top=50,left=50
');return true;">blabla</a>

What is this, by the way? DHTML, XHTML or what?


It's HTML or XHTML with JavaScript.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 20 '05 #2
"Pastis" <fe*********@yahoo.com> wrote in
comp.infosystems.www.authoring.stylesheets:
Is it possible to do this with CSS (so that I don't write all that with
every link)?
No.
<a href="blabla.mp3" target="new"
onclick="window.open('','new','toolbar=no,locatio n=no,directories=no,status=
no,menubar=no,scrollbars=no,resizable=yes,width=1 50,height=20,top=50,left=50
');return true;">blabla</a>

What is this, by the way? DHTML, XHTML or what?


It's a perfect abomination -- which, fortunately, is ignored by my
browser.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #3
"Pastis" <fe*********@yahoo.com> wrote in
news:hp******************@amsnews02.chello.com:
Dear all,

Is it possible to do this with CSS (so that I don't write all that
with every link)?

<a href="blabla.mp3" target="new"
onclick="window.open('','new','toolbar=no,location =no,directories=no,st
atus=
no,menubar=no,scrollbars=no,resizable=yes,width=15 0,height=20,top=50,le
ft=50 ');return true;">blabla</a>

What is this, by the way? DHTML, XHTML or what?


It's a piece of inline Javascript being used to create an effect that many
if not most people find extremely annoying, so much so that modern browsers
offer a setting to keep it from happening.
Jul 20 '05 #4
"Eric Bohlman" <eb******@earthlink.net> wrote in message
It's a piece of inline Javascript being used to create an effect that many
if not most people find extremely annoying, so much so that modern browsers offer a setting to keep it from happening.


Oh, I personally, as a user, don't mind it at all when used in the right
places.
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Paul | last post by:
I link to a web site from an Excel spreadsheet. The page i link to is getCookie.asp which sets a cookie then returns back some html which opens a new window, to the same site but a different page...
6
by: Les | last post by:
Hi, I'd like to find out how to use the window.open() script in Fireworks MX. I have posted my question in the Fireworks forum but didn't get any replies. Since it's javascript, maybe someone...
10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
10
by: David McCulloch | last post by:
The following code opens a new window, but the "resizeTo" doesn't resize it. Why not? (Don't ask why I simply did not open the window with the new size....my original problem was how to open a...
2
by: Samir Pandey | last post by:
Hello, I am using the following javascript code to open a new window. Somehow, IE always opens a new window. It doesn't open target url in the window name given. All i want is, if there is a...
3
by: NeverLift | last post by:
But, if it's not open, I don't want to open it . . . using window.open will open it if it doesn't exist, even if the url in that open is null (the window is then empty -- but it's open). The...
2
by: Larry R Harrison Jr | last post by:
I have pull-down menus in javascript and I have the code for opening a link in a new window. But I want it to open a full-sized window. I can't figure out the syntax. What I have so far: ...
8
by: Dominic Tocci | last post by:
I'm searching for a way to use window.open on my web page to open a window in firefox that allows the sidebars to work (bookmarks, history, etc). When I use the following: var...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
13
by: Geoff Fox | last post by:
I am in the final moments of designing a new website. One of the pages (http://www.auditionfactory.com/samples.php) has four links to show sample work. I would like these links to open new...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.